﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhy.ModbusLib.Base
{
    /// <summary>
    /// 功能码枚举值
    /// </summary>
    public enum Functions
    {
        /// <summary>
        /// 读取线圈状态
        /// </summary>
        RCoilStatus = 0x01, 
        /// <summary>
        /// 读取输入线圈状态
        /// </summary>
        RInputCoils = 0x02, 
        /// <summary>
        /// 读取保持寄存器
        /// </summary>
        RHoldingRegister = 0x03, 
        /// <summary>
        /// 读取输入寄存器
        /// </summary>
        RInputRegister = 0x04, 

        /// <summary>
        /// 写入线圈状态
        /// </summary>
        WCoilStatus = 0x0F,
        /// <summary>
        /// 写入寄存器
        /// </summary>
        WHoldingRegister = 0x10,
    }
}
